﻿/*------------------------------------------------
// File Description: LableTemplate DataBase Entity
// Author:			 Crane
// Create Time:		 2020-07-09 11:27:52
//------------------------------------------------*/

using System;
using System.Data.Entity;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace IOA.MES.DataAccess.Entity
{
	/// <summary>
	/// 标签模板
	/// </summary>
	[Table(nameof(LabelTemplate))]
	public class LabelTemplate : BaseEntity
	{
		private string _templateName = string.Empty;
		private string _serialNum = string.Empty;
		private string _borderBarCode = string.Empty;
		private string _nameplate = string.Empty;
		private string _currentTag = string.Empty;
		private string _energyTag = string.Empty;
		private string _mark = string.Empty;
		private string _pallNumTag = string.Empty;
		private string _frChart = string.Empty;
		private string _oBAData = string.Empty;

		#region Public Property

		///<Summary>
		/// 模板名称
		///</Summary>
		public string TemplateName
		{
			get { return string.IsNullOrWhiteSpace(_templateName) ? string.Empty : _templateName; }
			set { _templateName = value; }
		}

		///<Summary>
		/// 序列号
		///</Summary>
		public string SerialNum
		{
			get { return string.IsNullOrWhiteSpace(_serialNum) ? string.Empty : _serialNum; }
			set { _serialNum = value; }
		}

		///<Summary>
		/// 边框条码
		///</Summary>
		public string BorderBarCode
		{
			get { return string.IsNullOrWhiteSpace(_borderBarCode) ? string.Empty : _borderBarCode; }
			set { _borderBarCode = value; }
		}

		///<Summary>
		/// 铭牌
		///</Summary>
		public string Nameplate
		{
			get { return string.IsNullOrWhiteSpace(_nameplate) ? string.Empty : _nameplate; }
			set { _nameplate = value; }
		}

		///<Summary>
		/// 电流标
		///</Summary>
		public string CurrentTag
		{
			get { return string.IsNullOrWhiteSpace(_currentTag) ? string.Empty : _currentTag; }
			set { _currentTag = value; }
		}

		///<Summary>
		/// 能源标签
		///</Summary>
		public string EnergyTag
		{
			get { return string.IsNullOrWhiteSpace(_energyTag) ? string.Empty : _energyTag; }
			set { _energyTag = value; }
		}

		///<Summary>
		/// 唛头
		///</Summary>
		public string Mark
		{
			get { return string.IsNullOrWhiteSpace(_mark) ? string.Empty : _mark; }
			set { _mark = value; }
		}

		///<Summary>
		/// 托盘号标签
		///</Summary>
		public string PallNumTag
		{
			get { return string.IsNullOrWhiteSpace(_pallNumTag) ? string.Empty : _pallNumTag; }
			set { _pallNumTag = value; }
		}

		///<Summary>
		/// FR报表
		///</Summary>
		public string FrChart
		{
			get { return string.IsNullOrWhiteSpace(_frChart) ? string.Empty : _frChart; }
			set { _frChart = value; }
		}

		///<Summary>
		/// OBA数据
		///</Summary>
		public string OBAData
		{
			get { return string.IsNullOrWhiteSpace(_oBAData) ? string.Empty : _oBAData; }
			set { _oBAData = value; }
		}
		#endregion
	}

	public partial class MESContext
	{
		/// <summary>
		/// 标签模板
		/// </summary>
		public virtual DbSet<LabelTemplate> LabelTemplates { get; set; }
	}
}